import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: "/houseEconomicDamageAssess/getFailureRatio",
    method: "get",
    params: query,
  });
}
export function getListAll(query) {
  return request({
    url: "/houseEconomicDamageAssess/page",
    method: "get",
    params: query,
  });
}
// 查看
export function getEvaluationSubArea(id) {
  return request({
    url: "/houseEconomicDamageAssess/getEvaluationSubArea",
    method: "get",
    params:{
    	xsemId:id
    }
  });
}

// 获取编号
export function getCode(id) {
  return request({
    url: "/samPoiData/getSamPoiCode",
    method: "get",
    params:id
  });
}

// 获取提示信息
export function getMessage(id) {
  return request({
    url: "/houseEconomicDamageAssess/getMessage",
    method: "get",
    params:{
    	xsemId:id
    }
  });
}
// 判断是否继续计算
export function getFailureRatioByXsemId(query) {
  return request({
    url: `/houseEconomicDamageAssess/getFailureRatioByXsemId`,
    method: "get",
    params: query,
  });
}